<template>
  <el-dialog
    title="查看"
    :close-on-click-modal="false"
    :visible.sync="visible"
    width="60%"
  >
    <div style="padding:20px">
      <viewer :images="urlList">
        <div
          v-for="(item,index) in urlList"
          :key="index"
          style="display:inline-block;margin-right:10px"
        >
          <img style="width:120px" :src="item" />
        </div>
      </viewer>
    </div>
  </el-dialog>
</template>

<script>
import { treeDataTranslate } from "@/utils";
export default {
  components: {},
  data() {
    return {
      urlList: [],
      dataForm: {
        id: []
      },
      visible: false,
      activeName: "1"
    };
  },
  methods: {
    init(id) {
      this.urlList = id.split(",");

      this.visible = true;
    }
  }
};
</script>
<style   >
.el-tabs__header {
  margin: 0;
}
.tabLabel {
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  flex-direction: column;
}
.reportBox {
  border: 2px solid #eee;
  width: 900px;
  margin: 10px ;
}
.boxRow {
  display: flex;
}
.rowItem {
  flex: 1;
  padding-left: 20px;
}
</style>